<template>
	<view>
		<button open-type="getUserInfo" @getuserinfo="getUserInfo">获取用户信息</button>
		
		<button @click="getUserInfo1">获取用户信息</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods: {
			getUserInfo(e) {
				console.log(e)
			},
			getUserInfo1() {
				uni.getUserInfo({
					success: resp => {
						console.log(resp)
					}
				})
			}
		}	
	}
</script>

<style lang="scss">

</style>
